﻿using System;

namespace Blog.Interceptors
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
    public class ThridPartyCallLogAttribute : Attribute
    {
        public OperatorType OperatorType { get; set; }

        public Scene Scene { get; set; }
        

        public ThridPartyCallLogAttribute(OperatorType operatorType, Scene scene)
        {
            Scene = scene;
            OperatorType = operatorType;
        }
    }

    public enum OperatorType
    {
        新增 = 10,
        修改 = 20,
        删除 = 30
    }

    public enum Scene
    {
        煤炭销售合同 = 10,
        装船出库 = 20,
        装船出库质检 = 30,
        装船出库销售结算 = 40
    }
}